import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * 根据 ID 删除 Notices 信息
 * /notices/{id}
 */
export function deleteNoticesById(params: DeleteNoticesByIdParams, config?: AxiosRequestConfig) {
    return request.delete<DeepRequired<boolean>>(`/notices/${params.id}`, config);
}

export interface DeleteNoticesByIdParams {
    id: number;
}
